Skip to content

Conversation

@rolnico
Copy link
Member

@rolnico rolnico commented Jan 29, 2025

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
Feature

What is the current behavior?
CI uses some action to format slack notification
image

What is the new behavior (if this is a feature change)?
Better format
image

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Existing integration branches for the current snapshot version of powsybl-core should be renamed by adding the prefix ci/core-. (For instance, 6.7.0-SNAPSHOT => ci/core-6.7.0-SNAPSHOT).

Other information:

⚠️ Important note: Before this PR, the integration branches used for each repo were called with the snapshot version of powsybl-core (for instance 6.6.0-SNAPSHOT). Now their name should be prefixed with integration/powsyblcore-. In our previous example, the branches must be called integration/powsyblcore-6.6.0-SNAPSHOT.
As a consequence, only maintainers can create these branches or force-push into them (see the branching strategy documentation).

Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
@rolnico rolnico changed the title Nro/switch snapshot ci to new app Switch snapshot ci to new app and rework notification design Jan 29, 2025
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Nicolas Rol <[email protected]>
@rolnico rolnico marked this pull request as ready for review January 31, 2025 16:12
@olperr1
Copy link
Member

olperr1 commented Feb 5, 2025

Once merged, powsybl/powsybl-dev-tools#120 should be adapted to reflect the integration branch naming pattern change.

core_snapshot_version=$(echo "$core_version" | grep -q SNAPSHOT && echo "$core_version" || echo "$core_version-SNAPSHOT")

# Find if an integration branch exists
INTEGRATION_BRANCH=$(git ls-remote --heads "$repo" | grep -E "refs/heads/integration/powsyblcore-$core_snapshot_version" | sed 's/.*refs\/heads\///')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After consulting the main repositories' maintainers, it was decided to keep non-protected branches for the CI snapshot process.
Can you change this script to use refs/heads/ci/core-$core_snapshot_version instead ("integration" -> "ci" + "powsyblcore" -> "core") and to remove references to "integration"?

# Conflicts:
#	.github/workflows/snapshot-ci.yml
Signed-off-by: Nicolas Rol <[email protected]>
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 3, 2025

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 3, 2025

@olperr1 olperr1 merged commit f7765f7 into main Apr 3, 2025
10 checks passed
@olperr1 olperr1 deleted the nro/switch_snapshot_CI_to_new_app branch April 3, 2025 11:00
nao1345678 pushed a commit that referenced this pull request Apr 10, 2025
* rework CI snapshot
* add print
* fix jobs name
* format results
* change references from integration to snapshot

Signed-off-by: Nicolas Rol <[email protected]>
Signed-off-by: Naledi EL CHEIKH <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants